from django.urls import re_path
from verfications import views

urlpatterns = [
    # 发送图片验证码
    re_path('^image_code/(?P<uuid>[\w-]+)/$' , views.ImageCodeView.as_view()),
    # 发送手机验证码
    # let url = '/sms_code/'+this.mobile+'/?uuid='+this.uuid+'&image_code='+this.image_code;
    re_path("^sms_code/(?P<mobile>1[3-9]\d{9})/$", views.SmsCodeView.as_view())
]